import React from 'react'
import ReactDom from 'react-dom'
import {Button,WingBlank} from 'antd-mobile'
import { connect } from 'react-redux'
import {addGun,removeGun,addGunAnync} from './index.redux'
@connect(
    //需要将什么属性放入props
    state=>({num:state}),
    //需要将什么方法放入props
    {addGun,removeGun,addGunAnync}
)

class A extends React.Component{
    render(){
       return(
           <div>
               <h1>我是A组件</h1>
               <h1>现在有机枪{this.props.num}</h1>
           </div>
       )
    }
}
export default A